<script>
/* jQuery->validation */
$(document).ready(function(){
    $("#PlanesEditForm").validate();
    });
</script>

<?php echo $this->Form->create('Planes', array(
										'url' => array('controller' => 'planes', 'action' => 'edit'),
										'inputDefaults' => array('label' => false, 'div' => false)
										)
								); ?>

    <div class="grid_3 titulo_campo">Nombre</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.id', array('value'=>$this->data['Plan']['id'], 'type' => 'hidden'));?>
        <?php echo $this->Form->input('Plan.name', array('value'=>$this->data['Plan']['name'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Nombre a Mostrar</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.name_show', array('value'=>$this->data['Plan']['name_show'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Importe</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.precio', array('value'=>$this->data['Plan']['precio'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>
	
    <div class="grid_3 titulo_campo">Moneda</div>
	<div class="grid_5">
		<?php echo $this->Form->select('Plan.money_id', $monedas, null, array('escape' => false, 'empty' => false, 'class'=>'select')); ?>        
	</div>
    <div class="clear"></div>
	
    <div class="grid_3 titulo_campo">Cantidad de Pacientes</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.maximo_pacientes', array('value'=>$this->data['Plan']['maximo_pacientes'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Max.Espacio (Gb)</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.maximo_gb', array('value'=>$this->data['Plan']['maximo_gb'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Cant.Maxima Medicos</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.maximo_medicos', array('value'=>$this->data['Plan']['maximo_medicos'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Cant.Maxima Administrativos</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.maximo_admin', array('value'=>$this->data['Plan']['maximo_admin'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Dias de Vigencia</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Plan.dias_vigencia', array('value'=>$this->data['Plan']['dias_vigencia'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Activo</div>
    <div class="grid_5">
        <?php $activo['0'] = 'No';  $activo['1'] = 'Si'; ?>
        <?php echo $this->Form->select('Plan.activo', $activo, null, array('escape' => false, 'empty' => false, 'class'=>'select')); ?>        

    </div>
    <div class="clear"></div>


    <div class="grid_6 save">
        <?php echo $this->Form->input('Plan.save_apply', array('value'=>'save', 'type' => 'hidden'));?>
        <?php
            $options = array('label' => 'Guardar los cambios','name' => 'save');
            echo $this->Form->end($options); 
        ?>
    </div>


</form>
<div class="clear"></div>
